package com.crrc.yzt.demo.activity

import android.os.Bundle
import android.view.View
import com.crrc.yzt.demo.blue.R
import com.crrc.yzt.demo.base.BaseActivity
import com.crrc.yzt.demo.blue.databinding.ActivityCarDateListBinding

class CarDateListActivity : BaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        val binding = ActivityCarDateListBinding.inflate(layoutInflater)
        setContentView(binding.root)

        binding.ivBack.setOnClickListener{
            finish()
        }

        binding.apply {
            radioGroup.setOnCheckedChangeListener { group, checkedId ->
                when(checkedId){
                    R.id.radio1->{
                        scrollView2.visibility = View.GONE
                        scrollView1.visibility = View.VISIBLE
                    }
                    R.id.radio2->{
                        scrollView2.visibility = View.VISIBLE
                        scrollView1.visibility = View.GONE
                    }
                }
            }
        }

    }
}